﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Vanfa.Web.UI.Authorization
{
    /// <summary>
    /// 用户授权标识
    /// </summary>
    [AttributeUsage(AttributeTargets.Class)]
    public class UserAuthorizationAttribute : Attribute
    {
        /// <summary>
        /// 是否允许所有用户访问
        /// true表示所有用户
        /// false表示用户必须登录
        /// </summary>
        public bool IsAnonymous { get; set; }

        /// <summary>
        /// 自定义Page对象
        /// </summary>
        public string PageContext { get; set; }
    }
}
